<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  header("location:checklogin.php");
}

 $deleteTruck = "DELETE FROM truckmaster 
                   WHERE  truckId = ".$_GET['truckId'];
$deleteTruckRes = mysql_query($deleteTruck);
if(!$deleteTruckRes)
{
	echo("DELETE FAIL");
}
else
{
	header("Location:truck.php");
}
?>